#pragma warning(disable:4005)
#include <drogon/HttpController.h>
#include "OCMain/Environment.h"

using namespace drogon;

class weaService : public HttpController<weaService>
{
  public:
    METHOD_LIST_BEGIN
    METHOD_ADD(weaService::genericHome, "", Get);
    METHOD_LIST_END

  protected:
    void genericHome(const HttpRequestPtr& req,
        std::function<void(const HttpResponsePtr&)>&& callback)
    {
        auto resp = HttpResponse::newHttpResponse();
        resp->setBody("weaService");
        callback(resp);
    }
};